package tw.com.softleader.fire.setting.entity;

import javax.persistence.Column;
import javax.persistence.Entity;

import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import tw.com.softleader.fire.common.entity.GenericEntity;
/*
@Author:Billy 
 */
@Entity
@Table(name="SET_ROAD_CODE")
public class RoadCodeEntity extends GenericEntity {
		
	@Column(name="ADDR_CODE", length=10)
	private String addrCode;
	
	@Column(name="ROAD_CODE",length=10)
	private String roadCode;
	
	@Column(name="ROAD_NAME",length=100)
	private String roadName;

	@ManyToOne
	@JoinColumn(name="ADDR_ZIP_ID")
    private AddrZipEntity addrZipEntity;
	

	



	@Override
	public String toString() {
		return "RoadCodeEntity [addrCode=" + addrCode + ", roadCode=" + roadCode
				+ ", roadName=" + roadName + ", addrZipEntity=" + addrZipEntity
				+ ", id=" + id + ", createTime=" + createTime + ", creator="
				+ creator + ", modifiedTime=" + modifiedTime + ", modifier="
				+ modifier + "]";
	}

	public String getAddrCode() {
		return addrCode;
	}

	public void setAddrCode(String addrCode) {
		this.addrCode = addrCode;
	}

	public String getRoadCode() {
		return roadCode;
	}

	public void setRoadCode(String rodCode) {
		this.roadCode = rodCode;
	}

	public String getRoadName() {
		return roadName;
	}

	public void setRoadName(String rodName) {
		this.roadName = rodName;
	}

}
